package com.dao.admin;


import com.po.Goodsinfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository("adminGoodsDao")
@Mapper
public interface AdminGoodsDao {
	public List<Goodsinfo> selectGoods();
	public List<Goodsinfo> selectAllGoodsByPage(Map<String, Object> map);
	public int addGoods(Goodsinfo goods);
	public Goodsinfo selectGoodsById(Integer id);
	public int deleteGoods(List<Integer> ids);
	public int deleteAGoods(Integer id);
	public int updateGoodsById(Goodsinfo goods);
	public List<Map<String, Object>> selectCartGoods(Integer id);
	public List<Map<String, Object>> selectFocusGoods(Integer id);
	public List<Map<String, Object>> selectOrderdetailGoods(Integer id);
}
